package com.tourism.admin.entity;

/**
 * @author xiaolen
 * time:2018/3/24 12:57
 * 帖子对象
 */
public class Post {

    //主键
    private Integer id;

    private Integer cid;
    //标题
    private String title;
    //内容
    private String content;
    //图片
    private String image;
    //创建时间
    private String createtime;
    //点赞数
    private Integer likes;
    //评论数
    private Integer cnums;

    //状态
    private String status;
    //
    private String forumname;
    //作者id
    private Integer uid;

    //版块
    private Integer fid;

    //作者
    private String nickname;
    //作者头像
    private String icon;
    //作者等级图标
    private String levelicon;


    public Post() {
    }



    public Post(Integer id, String title, String content, String image, String createtime, Integer likes, String status, String nickname, String forumname) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.image = image;
        this.createtime = createtime;
        this.likes = likes;
        this.status = status;
        this.nickname = nickname;
        this.forumname = forumname;
    }

    public Post(Integer id, Integer cid, String title, String content, String image, String createtime, Integer likes, Integer cnums, String status, Integer uid, Integer fid,String nickname, String icon, String levelicon) {
        this.id = id;
        this.cid = cid;
        this.title = title;
        this.content = content;
        this.image = image;
        this.createtime = createtime;
        this.likes = likes;
        this.cnums = cnums;
        this.status = status;
        this.uid = uid;
        this.fid = fid;
        this.nickname = nickname;
        this.icon = icon;
        this.levelicon = levelicon;
    }

    public String getForumname() { return forumname; }

    public void setForumname(String forumname) { this.forumname = forumname; }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public Integer getLikes() {
        return likes;
    }

    public void setLikes(Integer likes) {
        this.likes = likes;
    }

    public Integer getCnums() {
        return cnums;
    }

    public void setCnums(Integer cnums) {
        this.cnums = cnums;
    }


    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getLevelicon() {
        return levelicon;
    }

    public void setLevelicon(String levelicon) {
        this.levelicon = levelicon;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getUid() {
        return uid;
    }

    public Integer getFid() {
        return fid;
    }

    public void setFid(Integer fid) {
        this.fid = fid;
    }
}

